package com.xqboss.apps.domain.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.xqboss.apps.domain.BaseTable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 公告分类表
 * </p>
 *
 * @author admin
 * @since 2024-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysAnnouncementCategory对象", description="公告分类表")
public class SysAnnouncementCategory extends BaseTable implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "绑定数量")
    @TableField(exist = false)
    private Long bindCount;

    @ApiModelProperty(value = "是否显示，0否，1是")
    private Boolean isDisplay;

    public void setBindCount(Long bindCount) {
        this.bindCount = bindCount==null?0:bindCount;
    }
}
